home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-27 | 1.9 KB | 78 lines |
- COMMON_HDRS= ../h/token.h ../h/getmsg.h ../h/lg.h ../h/rc_comp_str.h ../h/codelg.h
-
- COMMON_OBJS=
-
- include ../../Configfile
-
- OBJS= codehelp.o keybind.o keytab.o messages.o misc.o msgname.o \
- name.o optmac.o parseasm.o parsecond.o parsemac.o parser.o \
- scanner.o set.o $(MIPSADD)
-
- all: check_common keybind
-
- lint: lint_test $(LINTFILES) awk
- $(LINT) $(CPPFLAGS) $(LINTFLAGS) $(LINTFILES)
-
- keybind: $(OBJS) $(COMMON_OBJS) ../lib/orilib.a
- $(LD) $(LDFLAGS) -o $@ $(OBJS) $(COMMON_OBJS) ../lib/orilib.a $(LIBS)
-
- awk: check_common namelist.h ocltoken.h
-
- do_check_common:check_common
-
- #{{{}}}
- #{{{ automatically generated files
- #{{{ files, generated from ../h/msg
- msgname.c: msg2c.awk ../h/msg
- $(AWK) -f msg2c.awk <../h/msg >msgname.c
- #}}}
- #{{{ files, generated from ../h/tokens
- ocltoken.h autotoken.h: ../h/tokens tok2kbd.awk
- $(AWK) -f tok2kbd.awk <../h/tokens
- #}}}
- #{{{ ocl token lists
- #{{{ utilities, for generating ->
- n_list.o: keybind.h ../h/defaults.h ../h/os.h ../h/keys.h ocltoken.h
-
- n_list: autotoken.h n_list.o
- $(LD) $(LDFLAGS) -o $@ n_list.o $(LIBS)
- #}}}
-
- namelist.h: n_list.c ../h/tokens tok2kbd.awk
- $(MAKE) n_list
- ./n_list >$@
- rm -f n_list n_list.o
- #}}}
- #}}}
-
- install: check_common keybind
- $(BIN_INSTALL) -m 755 keybind $(BIN_PATH)
-
- deinstall:
- rm -f $(BIN_PATH)/keybind
-
- empty_depend:
- rm -f *dependencies*
- > dependencies
-
- pseudo_depend: $(COMMON_HDRS) ../lib/*.h awk empty_depend
- echo $(OBJS) $(COMMON_OBJS) ":" *.h $(COMMON_HDRS) >>dependencies
-
- depend: $(COMMON_HDRS) awk empty_depend
- $(GEN_DEPEND)
-
- tags: awk
- ctags -t *.c $(COMMON_OBJS)
-
- clean:
- rm -f core symbol.out err.out $(OBJS) n_list.o n_list \
- *.u.c namelist.h ../origami/lg.h \
- autotoken.h ocltoken.h msgname.c tags
-
- clobber: clean empty_depend
- rm -f keybind
- rm -f n_list n_list.o autotoken.h
-
- include dependencies
- # DO NOT DELETE THIS LINE -- make depend depends on it.
-